package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 操作按钮关联Po
 */
@Data
@Entity
@Table(name = "z_operation_button_relation")
@IdClass(OperationButtonRelationPK.class)
public class OperationButtonRelation {
    /**
     * 操作ID
     */
    @Id
    @Column(name = "operation_id", nullable = false, unique = true)
    private Integer operationId;
    /**
     * 按钮ID
     */
    @Id
    @Column(name = "button_id", nullable = false, unique = true)
    private Integer buttonId;
}